import { get, post } from "../interceptors/axios.js";
// 请求获取所有餐厅评价
export function reqRestaurantComment(param) {
  const result = get("getAllRestaurantEvaluation.do", param);
  return result;
}
//管理员审核餐厅评论
export function handleRestaurantComment(param) {
  const result = post("reviewRestaurantEvaluation.do", param);
  return result;
}

// 请求获取所有菜系评价
export function reqDishComment(param) {
  const result = get("getAllDishEvaluation.do", param);
  return result;
}
//管理员审核菜系评论
export function handleDishComment(param) {
  const result = post("reviewDishEvaluation.do", param);
  return result;
}
